package com.sino.operation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sino.operation.entity.BizDictSet;
import com.sino.operation.mapper.BizDictSetMapper;
import com.sino.operation.service.BizDictSetService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 交易全字段设置表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-07
 */
@Service
public class BizDictSetServiceImpl extends ServiceImpl<BizDictSetMapper, BizDictSet> implements BizDictSetService {

    @Autowired
    private  BizDictSetMapper bizDictSetMapper;
    @Override
    public List<BizDictSet> selectList(String transCode,String transType) {
        QueryWrapper<BizDictSet> wrapper = new QueryWrapper<>();
        if (!transCode.isEmpty()){
            wrapper.eq("FIELD_TRANS_CODE",transCode);
        }
        if (!transCode.isEmpty()){
            wrapper.eq("FIELD_TRANS_TYPE",transType);
        }
        return  bizDictSetMapper.selectList(wrapper);
    }
}
